package com.aisi.controller;

import com.aisi.domain.ResponseResult;
import com.aisi.service.UploadService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;

/**
 * @Author: shenjianZ
 * @Date: 2024/3/26 21:14
 * @Description:
 */

@RestController
public class UploadController {

    private UploadService uploadService;
    @PostMapping("/upload")
    public ResponseResult setUploadService(MultipartFile file) {
        return uploadService.uploadImg(file);
    }

}
